/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.ufc.stopwatchplugin;

import br.ufc.stopwatchplugin.panel.StopwatchBtn;
import br.ufc.stopwatchplugin.panel.StopwatchPanel;
import java.awt.Component;
import org.openide.util.HelpCtx;
import org.openide.util.NbBundle;
import org.openide.util.actions.CallableSystemAction;
import org.openide.util.actions.Presenter;

public final class StopwatchAction extends CallableSystemAction implements Presenter.Toolbar {

    private StopwatchBtn toolBar;
    
    public StopwatchAction() {
        toolBar = new StopwatchBtn();
    }
    
    public void performAction() {
        // TODO implement action body
    }

    public String getName() {
        return NbBundle.getMessage(StopwatchAction.class, "CTL_StopwatchAction");
    }

    @Override
    public Component getToolbarPresenter() {
        return toolBar;
    }

//    @Override
//    protected String iconResource() {
//        return "br/ufc/stopwatchplugin/1281559794_chronometer.png";
//    }

    public HelpCtx getHelpCtx() {
        return HelpCtx.DEFAULT_HELP;
    }

    @Override
    protected boolean asynchronous() {
        return false;
    }
}
